<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>关键字管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/keyword/aegisKeyword/">关键字列表</a></li>
		
	</ul>
	<form:form id="searchForm" modelAttribute="aegisKeyword" action="${ctx}/keyword/aegisKeyword?branchId=${branchId}" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<ul class="ul-form">
			<li><label>关键字名称：</label>
				<form:input path="keywordname" htmlEscape="false" maxlength="20" class="input-medium"/>
			</li>
			<li><label>每页：</label>
			<select id="pageSize" name="pageSize" class="input-medium">
			    <option value="20"    <c:choose><c:when test="${page.pageSize=='20'}">selected=true</c:when></c:choose>>20</option>
				<option value="30"    <c:choose><c:when test="${page.pageSize=='30'}">selected=true</c:when></c:choose>>30</option>
				<option value="100"   <c:choose><c:when test="${page.pageSize=='100'}">selected=true</c:when></c:choose>>100</option>
				<option value="500"   <c:choose><c:when test="${page.pageSize=='500'}">selected=true</c:when></c:choose>>500</option>
				<option value="1000"  <c:choose><c:when test="${page.pageSize=='1000'}">selected=true</c:when></c:choose>>1000</option>
			</select>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th	style="color:#5599FF;">主键</th>
				<th	style="color:#5599FF;">关键字名称</th>
				<th	style="color:#5599FF;">描述</th>
				<th	style="color:#5599FF;">录入人</th>
				<th	style="color:#5599FF;">创建时间</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="aegisKeyword">
			<tr>
				<td>
					${aegisKeyword.id}
				</a></td>
				<td>
					${aegisKeyword.keywordname}
				</td>
				<td>
					${aegisKeyword.description}
				</td>
				<td>
					${aegisKeyword.inputMan}
				</td>
				<td>
					<fmt:formatDate value="${aegisKeyword.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>